package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.base.logistics.Logistics;

public class LogisticsEvent extends DomainEvent<Logistics> {

  public static final String LOGISTICS_CREATED = "logisticsCreatedEvent";
  public static LogisticsEvent buildLogisticsAddEvent(Object[] values){
    LogisticsEvent logisticsEvent = new LogisticsEvent();
    logisticsEvent.eventName = LOGISTICS_CREATED;
    logisticsEvent.values = values;
    return logisticsEvent;
  }

  public static final String LOGISTICS_DELETED = "logisticsDeletedEvent";
  public static LogisticsEvent buildLogisticsDeletedEvent(Object[] values){
    LogisticsEvent logisticsEvent = new LogisticsEvent();
    logisticsEvent.eventName = LOGISTICS_DELETED;
    logisticsEvent.values = values;
    return logisticsEvent;
  }
}
